/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="INDICADORACIDENTE")
public class IndicadorAcidenteProteu implements Serializable{

    @Id
    @Column(name="IDA_IN_CODIGO")
    private Integer idaInCodigo;
    @Column(name="IDA_ST_DESCRICAO")
    private String idaStDescricao;

    public Integer getIdaInCodigo() {
        return idaInCodigo;
    }

    public void setIdaInCodigo(Integer idaInCodigo) {
        this.idaInCodigo = idaInCodigo;
    }

    public String getIdaStDescricao() {
        return idaStDescricao;
    }

    public void setIdaStDescricao(String idaStDescricao) {
        this.idaStDescricao = idaStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final IndicadorAcidenteProteu other = (IndicadorAcidenteProteu) obj;
        if (this.idaInCodigo != other.idaInCodigo && (this.idaInCodigo == null || !this.idaInCodigo.equals(other.idaInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.idaInCodigo != null ? this.idaInCodigo.hashCode() : 0);
        return hash;
    }



}
